﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewContent.aspx.cs" Inherits="Portal_ViewContent" StylesheetTheme="ContentMS" Theme="ContentMS" %>
<%@ Register Src="../UserControls/Header.ascx" TagName="Header" TagPrefix="ucHeader" %>
<%@ Register Src="../UserControls/Tailer.ascx" TagName="Tailer" TagPrefix="ucTailer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>查看具体信息</title>
    <script language="JavaScript" type="text/javascript">
	function doZoom(size)
	{
		document.getElementById('Content').style.fontSize = size + 'px'
	}
	</script>
</head>
<body style="margin-top:0;margin-bottom:0;">
    <form id="form1" runat="server">
    <table width="780" height="100%" class="GbText"  border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="780">
				<ucHeader:Header ID="SiteHeader" runat="server" />
			</td>
		</tr>			
		<tr>
			<td valign="top">
				<table width="780" class="GbText" height="100%"  border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="211" valign="top" bgcolor="#EAE7E0">
							<table width="211" class="GbText" height="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td align="center" valign="middle" width="211" height="72">
										<table  width="199" class="GbText" height="68" background="../Images/second_sea.jpg" cellpadding="0" cellspacing="0" border="0">
											<tr>
												<td width="151" align="center" valign="middle"><font class="SearchKey">请输入搜索关键字</font><br />
													<asp:TextBox ID="SearchKey" runat="server" Width="135px" CssClass="InputCss"></asp:TextBox>
												</td>
												<td width="48" height="68" valign="middle"><asp:ImageButton ID="SearchBtn" runat="server" ImageUrl="~/Images/secondlogo.jpg" CausesValidation="False" OnClick="SearchBtn_Click" /></td>
											</tr>
										</table>
									</td>	
								</tr>
								<tr>
									<td width="211" height="4" background="../Images/second_r12_c1.jpg"></td>
								</tr>
								<tr>
									<td width="211" height="100%" bgcolor="#EAE7E0" valign="top">
										<asp:GridView ID="ContentView" runat="server" AutoGenerateColumns="False" ShowHeader="False" Width="100%" CellSpacing="2" GridLines="None">
											<Columns>
												<asp:TemplateField>
													<ItemTemplate>
														<asp:Image ID="ContentImage" runat="server" ImageUrl="../Images/ball.jpg" />&nbsp;
														<a href='<%# FormatContentUrl(Eval("Desn").ToString(),(Boolean)Eval("Type"),(int)Eval("ID")) %>' target='<%#FormatContentTarget((Boolean)Eval("Type")) %>'>
															<%# SysOperation.FormatStringLength(Eval("Name").ToString(),SysInfomation.ContentNameListLength) %></a>
													</ItemTemplate>
												</asp:TemplateField>
											</Columns>
											<RowStyle Height="20px" />
										</asp:GridView>							
									</td>
								</tr>								
							</table>
						</td>
						<td width="569" height="100%" valign="top" background="../Images/second_r6_c5.jpg"><!-- height=534" -->
							<table width="569" class="GbText" height="100%"  border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="6" background="../Images/second_r4_c4.jpg" style="height: 100%">&nbsp;</td>
									<td width="563" valign="top" style="height: 100%">
										<table width="563" class="GbText" height="534"  border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td width="563" valign="top" background="../Images/second_r6_c5.jpg">
													<table width="563" class="GbText" height="100%"  border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td width="563" height="25" background="../Images/second_r4_c5.jpg">
															&nbsp;<asp:SiteMapPath ID="SiteMapPath1" runat="server" PathSeparator=" >> ">
																</asp:SiteMapPath>
															</td>
														</tr>
														<tr>
															<td width="563" background="../Images/second_r6_c5.jpg" valign="bottom">
																<table width="563" class="GbText" height="100%"  border="0" cellpadding="0" cellspacing="0" style="padding-right: 10px; padding-left: 10px;">
																	<tr>
																		<td height="40" align="center" valign="middle"><%=Name %></td>
																	</tr>
																	<tr>
																		<td align="center" height="20" bgcolor="#afd5fc">发表日期：<%=CreateDate%>&nbsp;来源：TRP内容管理平台</td>
																	</tr>
																	<tr>																
																		<td height="25" align="center" valign="middle" bgcolor="#E7F1F8"><font id='GbText'>【<a href="javascript:recommEndNew()">推荐给朋友</a>】【浏览字号：<a href="javascript:doZoom(16)">大</a> <a href="javascript:doZoom(14)">中</a> <a href="javascript:doZoom(12)">小</a>】【<a href="javascript:window.print();">打印</a>】【<a href="javascript:window.close();">关闭</a>】</font></td>
																	</tr>
																	<tr>
																		<td align="center" class="GbText">
																			<asp:GridView ID="ContentPicView" Width="450" CellPadding="0" BorderWidth="0" CellSpacing="5" runat="server" AutoGenerateColumns="False" ShowHeader="False">
																				<Columns>
																					<asp:TemplateField>
																						<ItemTemplate>
																							<table cellpadding="5" cellspacing="0">
																								<tr>
																									<td align="center"><img src='../<%# Eval("Url") %>' width="400" height="300" /></td>
																								</tr>
																								<tr>
																									<td align="center"><a href='ViewPicture.aspx?DocumentID=<%# Eval("ID") %>' target="_blank"><%# Eval("Name") %></a></td>
																								</tr>
																							</table>																							
																						</ItemTemplate>
																					</asp:TemplateField>
																				</Columns>
																			</asp:GridView>
																		</td>
																	</tr>
																	<tr>
																		<td>
																			<div id="Content">　　<%=Body %>
																			</div>
																			<br />
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td background="../Images/second_r6_c5.jpg" valign="bottom">
													<div runat="server" id="attchmentdiv">
													<table width="546" height="189" class="GbText" background="../Images/second_r15_c6.jpg" border="0" align="center" cellpadding="0" cellspacing="0">
														<tr height="25" >
															<td width="546" valign="bottom" height="25" ><font class="colnmn">&nbsp;&nbsp;附件列表</font></td>
														</tr>
														<tr>
															<td width="546" height="164" valign="top">		
																<asp:GridView ID="AttachmentView" CellSpacing="2" BorderWidth="0" runat="server" ShowHeader="False" AutoGenerateColumns="False" Width="100%">
																	<Columns>
																		<asp:TemplateField>
																			<ItemTemplate>
																				<asp:Image ID="ContentImage" runat="server" ImageUrl="../Images/index_36.gif" />&nbsp;
																				<a href='../<%# Eval("Url")%>' style="font-weight: bold;"><%# Eval("Name")%>&nbsp;&nbsp;(<font color="DarkRed"><%# Eval("Type")%></font>&nbsp;:&nbsp;<font color="Gray"><%# Eval("CreateDate","{0:d}")%></font>)</a>
																			</ItemTemplate>
																		</asp:TemplateField>
																	</Columns>
																	<RowStyle Height="20px" />
																</asp:GridView>
															</td>
														</tr>														
													</table>
													</div>
												</td>
											</tr>
											<tr>
												<td background="../Images/second_r6_c5.jpg" valign="bottom">
													<table width="546" height="189" class="GbText" background="../Images/second_r15_c6.jpg" border="0" align="center" cellpadding="0" cellspacing="0">
														<tr height="25" >
															<td width="546" valign="bottom" height="25" ><font class="colnmn">&nbsp;&nbsp;相关新闻</font></td>
														</tr>
														<tr>
															<td width="546" height="164" valign="bottom">		
																<asp:GridView ID="RelContentView" runat="server" ShowHeader="False" AutoGenerateColumns="False" Width="100%">
																	<Columns>
																		<asp:TemplateField>
																			<ItemTemplate>
																				<asp:Image ID="ContentImage" runat="server" ImageUrl="../Images/index_36.gif" />&nbsp;
																				<a href='ViewContent.aspx?ContentID=<%# Eval("ID")%>' style="font-weight: bold;"><%# Eval("Name")%>&nbsp;&nbsp;<font color="silver">(<%# Eval("CreateDate","{0:d}")%>)</font></a>
																			</ItemTemplate>
																		</asp:TemplateField>
																	</Columns>
																	<RowStyle Height="20px" />
																</asp:GridView>
															</td>
														</tr>														
													</table>
												</td>
											</tr>
											<tr>
												<td height="4"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="84" background="../Images/model(1.1)_r19_c1.jpg">
				<ucTailer:Tailer ID="Tailer" runat="server" />
			</td>
		</tr>
	</table>
    </form>    
</body>
</html>
